package com.library.bookmanagement.entity;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author ：ZXM
 * @date ：Created in 2020/5/8 16:52
 * @description：借阅类
 */
 @Data
public class Read extends ReaderKey {
     @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date lendTime;

     @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date backTime;
    private User user;
    private Book book;
    private Integer backBool;


    public Integer getBackBool() {
        return backBool;
    }

    public void setBackBool(Integer backBool) {
        this.backBool = backBool;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Book getBook() {
        return book;
    }

    public void setBook(Book book) {
        this.book = book;
    }

    public Read() {
    }

    public Date getLendTime() {
        return lendTime;
    }

    public void setLendTime(Date lendTime) {
        this.lendTime = lendTime;
    }

    public Date getBackTime() {
        return backTime;
    }

    public void setBackTime(Date backTime) {
        this.backTime = backTime;
    }
}